package com.snimay.app.login.service.imp;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.snimay.app.login.repository.LoginRepository;
import com.snimay.app.login.service.LoginService;
import com.snimay.app.login.vo.Login;
@Service
public class LoginServiceImpl implements LoginService<Login,Long>{
	
	@Autowired
	LoginRepository loginrepository;

	@Override
	public Login getLogin(Long id) {
		// TODO Auto-generated method stub
		return loginrepository.findOne(id);
	}

	@Override
	public Login login(Login t) {
		// TODO Auto-generated method stub
		return loginrepository.save(t);
	}

	@Override
	public void logout(Long id) {
		// TODO Auto-generated method stub
		loginrepository.delete(id);
	}


	
}
